//
//  UITableViewCell+LoadFromNib.m
//  GroupwareHD
//
//  Created by Phan Quang Ha on 10/25/12.
//
//

#import "UITableViewCell+LoadFromNib.h"

@implementation UITableViewCell (LoadFromNib)

+ (id)loadCellFromNibName:(NSString *)nib
{
    id cell = nil;
    
    NSArray *arr = [[NSBundle mainBundle] loadNibNamed:nib owner:nil options:nil];
    for (id object in arr) {
        if ([object isKindOfClass:NSClassFromString(nib)]) {
            cell = object;
            break;
        }
    }
    return cell;

}
@end
